const state = {
	sidebar:{
		isCollapse:false //是否折叠
	}
}

const mutations = {
	TOGGLE_SIDEBAR(state){
		state.sidebar.isCollapse = !state.sidebar.isCollapse
	}
}

const actions = {
	toggleSidebar({commit}){
		commit('TOGGLE_SIDEBAR')
	}
}

export default{
	state,
	mutations,
	actions
}